package com.linzp.bishe.common;

import com.linzp.bishe.model.CatalogueMessage;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.List;

/**
 * @ClassName Catalogue
 * @Description 描述
 * @Author LinZePeng
 * @Date 2022/1/6 15:00
 * @Version 1.0
 */
@Data
@Component
@ConfigurationProperties(prefix = "catalogue")
public class Catalogue {
	private HashMap<String, List<CatalogueMessage>> hashMap;
	public List<CatalogueMessage> getUserMessage(){
		return hashMap.get("user");
	}
	public List<CatalogueMessage> getAdminMessage(){
		return hashMap.get("admin");
	}
}
